﻿using Godot;
using KludgeBox;

namespace VectorSurvivors.GameWorld;

public partial class WorldItem : Entity
{
    [Export] [NotNull] public Sprite2D Sprite { get; private set; }
    [Export] public ItemStack Stack { get; internal set; }
    
    public override void _Ready()
    {
        base._Ready();
        NotNullChecker.CheckProperties(this);
        Sprite.Texture = Stack.Item.Texture;
    }
}